package com.atguigu.edu.publisher.service.impl;

import com.atguigu.edu.publisher.beans.TrafficChViewDate;
import com.atguigu.edu.publisher.beans.TrafficKeyWordDate;
import com.atguigu.edu.publisher.mapper.TrafficStatsMapper;
import com.atguigu.edu.publisher.service.TrafficStatsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TrafficStatsServiceImpl implements TrafficStatsService {

    @Autowired
    private TrafficStatsMapper trafficStatsMapper;


    @Override
    public List<TrafficChViewDate> getChViewDate(String date) {
        return trafficStatsMapper.selectChViewDate(date);
    }

    @Override
    public List<TrafficKeyWordDate> getKeyWordDate(String date) {
        return trafficStatsMapper.selectKeyWordDate(date);
    }
}
